import request from '@/utils/request'

export function getTypeWithProjectAndProducts(purchaserId) {
  return request({
    url: '/getTypeWithProjectAndProducts',
    method: 'get',
    params: purchaserId
  })
}


export function getProductsByProjId(data) {
  return request({
    url: '/getProductsByProjId',
    method: 'get',
    params: data
  })
}
//getAllSupplierByTenderProduct
export function getAllSupplierByTenderProduct(data) {
  return request({
    url: '/getAllSupplierByTenderProduct',
    method: 'post',
    data
  })
}

export function addTenderInfo(data) {
  return request({
    url: '/addTenderInfo',
    method: 'post',
    data
  })
}

export function updateTenderInfo(data) {
  return request({
    url: '/updateTenderInfo',
    method: 'post',
    data
  })
}


export function getTenderAllInfoByTenderId(data) {
  return request({
    url: '/getTenderAllInfoByTenderId',
    method: 'get',
    params: data
  })
}